package com.lansi.company.bean;

import java.io.Serializable;

/**
 * 
 * @author Administrator
 *
 */
public class Company  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2427562087805380936L;
	private Integer id;
	private String  name;
	private String  sn;
	private String  type;
	private String  typeStr;
	private Integer gwnumber;
	private Integer cardnumber;
	private String  addr;
	private String  memo;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getTypeStr() {
		return typeStr;
	}
	public void setTypeStr(String typeStr) {
		this.typeStr = typeStr;
	}
	public Integer getGwnumber() {
		return gwnumber;
	}
	public void setGwnumber(Integer gwnumber) {
		this.gwnumber = gwnumber;
	}
	public Integer getCardnumber() {
		return cardnumber;
	}
	public void setCardnumber(Integer cardnumber) {
		this.cardnumber = cardnumber;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	@Override
	public String toString() {
		return "Company [id=" + id + ", name=" + name + ", sn=" + sn + ", type=" + type + ", typeStr=" + typeStr
				+ ", gwnumber=" + gwnumber + ", cardnumber=" + cardnumber + ", addr=" + addr + ", memo=" + memo + "]";
	}
	public Company() {
		
	}
	
	public Company(Integer id, String name, String sn, String type, String typeStr, Integer gwnumber,
			Integer cardnumber, String addr, String memo) {
		super();
		this.id = id;
		this.name = name;
		this.sn = sn;
		this.type = type;
		this.typeStr = typeStr;
		this.gwnumber = gwnumber;
		this.cardnumber = cardnumber;
		this.addr = addr;
		this.memo = memo;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((addr == null) ? 0 : addr.hashCode());
		result = prime * result + ((cardnumber == null) ? 0 : cardnumber.hashCode());
		result = prime * result + ((gwnumber == null) ? 0 : gwnumber.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((memo == null) ? 0 : memo.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((sn == null) ? 0 : sn.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		result = prime * result + ((typeStr == null) ? 0 : typeStr.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Company other = (Company) obj;
		if (addr == null) {
			if (other.addr != null)
				return false;
		} else if (!addr.equals(other.addr))
			return false;
		if (cardnumber == null) {
			if (other.cardnumber != null)
				return false;
		} else if (!cardnumber.equals(other.cardnumber))
			return false;
		if (gwnumber == null) {
			if (other.gwnumber != null)
				return false;
		} else if (!gwnumber.equals(other.gwnumber))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (memo == null) {
			if (other.memo != null)
				return false;
		} else if (!memo.equals(other.memo))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (sn == null) {
			if (other.sn != null)
				return false;
		} else if (!sn.equals(other.sn))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		if (typeStr == null) {
			if (other.typeStr != null)
				return false;
		} else if (!typeStr.equals(other.typeStr))
			return false;
		return true;
	}
	
	
	
}
